Dictionary.Keys Method

Returns all the keys in the Dictionary as an array of Variants. The order is stable and matches the order returned by the Values method at least until the Dictionary is modified.

Syntax

Use this method with For Each to loop through all the keys.